package com.lh.Config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@ConfigurationProperties("test.thread")
@Component
public class ThreadPool {

     private int corePoolSize;

     private int maximumPoolSize;

     private long keepAliveTime;

     public int getCorePoolSize() {
          return corePoolSize;
     }

     public void setCorePoolSize(int corePoolSize) {
          this.corePoolSize = corePoolSize;
     }

     public int getMaximumPoolSize() {
          return maximumPoolSize;
     }

     public void setMaximumPoolSize(int maximumPoolSize) {
          this.maximumPoolSize = maximumPoolSize;
     }

     public long getKeepAliveTime() {
          return keepAliveTime;
     }

     public void setKeepAliveTime(long keepAliveTime) {
          this.keepAliveTime = keepAliveTime;
     }
}
